/**
 * Created by Administrator on 2017/10/17.
 */
var mongoose = require("mongoose");
var mongoosePaginate = require('mongoose-paginate');
var ObjectId = mongoose.Schema.ObjectId

var schema = new mongoose.Schema({
    newsID:String,
    cateID:ObjectId,
    commit:String,
	name:String,
	data:{type:Date,default:Date.now}
});
schema.plugin(mongoosePaginate);

var commits = mongoose.model('Commitsr',schema,"commits");

module.exports= commits;